package com.xh.jf_blog.service;

import com.xh.jf_blog.bean.Article;
import com.xh.jf_blog.common.util.R;

import java.util.List;

/**
 * @Author PangJunjie
 * @Date 2024/2/21/021
 */
public interface ArticleService {
    List<Article> getListByAnthologyId(int anthologyId);

    Article getById(int articleId);

    void saveOrUpdate(Article article);

    void deleteById(int articleId);

    List<Article> getHotArticle();

    List<Article> getList(Article article);

    R getPage(int page, int limit, Article article);

    void updateReadCount(int articleId);
}
